package edu.unr.cater.npap.share.domain;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class VETeam {

    @ManyToOne
    private Project idproject;

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<Contact> teamLeaders = new HashSet<Contact>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<Contact> teamMember = new HashSet<Contact>();
}
